package org.jawa.exam.model;

import org.jawa.core.cache.CacheSizes;
import org.jawa.core.cache.Cacheable;
import org.jawa.core.cache.CannotCalculateSizeException;

/**
 * 
 * 类文件: ExamManualUser
 * <p>
 * <p>
 * 类描述：考试阅卷人员表
 * <p>
 * 作     者： migrant423
 * <p>
 * 日     期： 2012-7-16
 * <p>
 * 时     间： 下午8:40:24
 * <p>
 */
public class ExamManualUser implements Cacheable {

	private static final long serialVersionUID = -387534524916257243L;

	/**
	 * 考试编号
	 */
	private Long examId;
	/**
	 * 用户编号
	 */
	private Long userId;
	
	public Long getExamId() {
		return examId;
	}

	public void setExamId(Long examId) {
		this.examId = examId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public int getCachedSize() throws CannotCalculateSizeException {
		int size = 0;
		size += CacheSizes.sizeOfObject();
		size += CacheSizes.sizeOfLong();
		size += CacheSizes.sizeOfLong();
		return size;
	}

}
